<template>
  <a-modal
    title="提现"
    :width="640"
    :visible="visible"
    :confirmLoading="loading"
    @ok="handleOk"
    @cancel="handleCancel"
  >
    <a-form v-bind="formLayout" :form="form">
      <a-form-item label="提现" >
        <a-input-number placeholder="请输入提现金额" :step="0.1" v-decorator="['money']"></a-input-number>
      </a-form-item>
    </a-form>
  </a-modal>
</template>

<script>
import formModalMixin from '@/mixins/formModalMixin'
const fields = ['money']
export default {
  mixins: [formModalMixin],
  props: {
    takeMoneyAction: {
      type: Function,
      default: () => {}
    }
  },
  data () {
    this.editAction = this.takeMoneyAction
    this.addAction = this.takeMoneyAction
    this.fields = fields
    return {

    }
  },
  methods: {
    handleOkBefore (values) {
      const params = { ...values, store_type: this.$route.query.walletType === 'store' && this.$route.query.type }
      return params
    }
  }
}
</script>
